keepalived: enable reproducible-build
authorFlorian Eckert <[email protected]>
Mon, 11 Nov 2024 10:22:15 +0000 (11:22 +0100)
committerFlorian Eckert <[email protected]>
Thu, 4 Sep 2025 06:34:13 +0000 (08:34 +0200)
Before keepalived version '2.3.0' the compilation was not reproducable
because the compile date and other information has been added to the binary.

Starting with version '2.3.0', there is a new compilation option
'--enable-reproducible-build' that makes the binary reproducible.

The data that prevented this has been moved to a separate file,
'/etc/keepalived/keepalived.config-opts'.

This commit enables the reproducable build.

[1] https://github.com/acassen/keepalived/commit/30d2f759783e769c27974d22bab88f7e82dfcdf9

Signed-off-by: Florian Eckert <[email protected]>
net/keepalived/Makefile

index d9f23d85258a809d95921171d7c53d558b00133c..95e10dfd31a8b656664884aa3d56e79561189665 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=keepalived
 PKG_VERSION:=2.3.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://www.keepalived.org/software
@@ -84,6 +84,7 @@ endef
 
 CONFIGURE_ARGS+= \
        --enable-json \
+       --enable-reproducible-build \
        --with-init=SYSV \
        --disable-track-process \
        --runstatedir="/var/run"
@@ -216,6 +217,8 @@ endif
        $(INSTALL_DIR) $(1)/etc/keepalived
        $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf.sample \
                $(1)/etc/keepalived/keepalived.conf
+       $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.config-opts \
+               $(1)/etc/keepalived/
 
        $(INSTALL_DIR) $(1)/etc/uci-defaults
        $(INSTALL_BIN) ./files/etc/uci-defaults/keepalived \